# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Language.V1.Model.XPSPreprocessResponse do
  @moduledoc """


  ## Attributes

  *   `outputExampleSet` (*type:* `GoogleApi.Language.V1.Model.XPSExampleSet.t`, *default:* `nil`) - Preprocessed examples, that are to be imported into AutoML storage. This should point to RecordIO file(s) of PreprocessedExample messages. The PreprocessedExample.mvp_training_data-s returned here are later verbatim passed to Train() call in TrainExample.mvp_training_data.
  *   `speechPreprocessResp` (*type:* `GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse.t`, *default:* `nil`) - 
  *   `tablesPreprocessResponse` (*type:* `GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse.t`, *default:* `nil`) - 
  *   `translationPreprocessResp` (*type:* `GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse.t`, *default:* `nil`) - 
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :outputExampleSet => GoogleApi.Language.V1.Model.XPSExampleSet.t() | nil,
          :speechPreprocessResp =>
            GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse.t() | nil,
          :tablesPreprocessResponse =>
            GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse.t() | nil,
          :translationPreprocessResp =>
            GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse.t() | nil
        }

  field(:outputExampleSet, as: GoogleApi.Language.V1.Model.XPSExampleSet)
  field(:speechPreprocessResp, as: GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse)
  field(:tablesPreprocessResponse, as: GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse)

  field(:translationPreprocessResp,
    as: GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse
  )
end

defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSPreprocessResponse do
  def decode(value, options) do
    GoogleApi.Language.V1.Model.XPSPreprocessResponse.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.XPSPreprocessResponse do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
